package com.zhigh.urule.quickstart;


import com.bstek.urule.console.servlet.URuleServlet;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ImportResource;

@SpringBootApplication
@ImportResource("classpath:context.xml")
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    @Bean
    public ServletRegistrationBean<URuleServlet> uRuleServletServletRegistrationBean() {
        return new ServletRegistrationBean<>(new URuleServlet(), "/urule/*");
    }



}
